fix safe writer size