writing mode fix