fix for Write2007() and written Write2012()