fixing jump problem for macos(?)