fixed the jumping and blocking