Fix for Rails eager loading