fix for mongoid 10068 error