fix compat issues w mongoid