fix for mongoid3