Util writer fixes