fix bug with no port defined in observers