fixed a bug in port_ready?