fix crash when gameview has not been initialized