Fixed module copying routine