fix tiny error when ActiveRecord disabled