generated html wasn't copied properly before