fix undefined game issue