fix for missing namespace prefix in closing tag on restart