Fixed issue with parameters in ORM