From what I recall, June likes you right from the start, when you first get on the ship. It doesn't matter if you flirt with him or not, I assume he just has a strong crush, and misinterprets you simply being nice to him as potentially returning his feeling? I'm guessing everyone gets that dialogue and it's not a bug for that reason, but I could be wrong.