Fix code preview functionality at module creation time.