Fixed the script to move in constant height.