Module manager unload loaded modules before load, fixed bug introduced in 31d46c9cc4801b8f7ba9691ac5335f73a3d2238a