fix for setting BM ports