fix GameLayer bug