[#] fix some bags in ORM class