fix mongoid $oid problem