fix item order when it gets messed up