fixed an infinite jump issue