Fix jump calulation