repair writeSkin