fixed factories.rb