Fixed bug with getting modules from JSON