Well, if their navy is in the port, then your land troops force them out. You can't have a naval battle in a port.

If that isn't the case, then it is probably a bug.