Fixed bug with more than 1 modules