Copy modules correctly