Fix loading of ActiveRecord