Fix for bounce()