Fixed broken compilation due to wrong logic in the scripts object exposed in the game interface