fix orders factory