temp fix for mongoid4 beta1.