fixed regression on id order