Fix many problems on orders table