fixing ORM command