fixed orm bug version2