Bugfix in game.declare function