Errors rectifications in collector.rb
Rspec tests did not pass every time actually.