fixed error in orm