fix modules array merge