Fixed bug that caused runtime error in module_rank.rb