Fix initialization errors

It solves this issue: https://github.com/sferik/rails_admin/issues/1874