fix orders table