fix the jumping logic of profile