deep copy resulted module before emitting