fixed ORM on CLI