Fix mass-assignment issue in ordering machine