Modules is a map, not list
Merge pull request #1161 from sharoonthomas/patch-1

Modules is a map, not list