fix for possible NPE in the gamemanager