fixed problem with ORM