Remove frame variable so the crafty scope can access frame variable. Fixed #688