Fixed the jumping bug