Fixed the drawModules() method