[orm] fix comparing property value