orders table fix