phpORM bug fix