Fixed error in handling aliases redeclared in multiple modules