gui: another fix for the port menu creation callback