handle the case when jmp distance is 0