fixed bug in ORM example script