fix ActiveRecord