Before refactoring
Fixed Jump point bug