fixed outdated mongoid calls
fixed failures