fix scope issues for mongoid4