fix mongoid initializer hook