fixed bug in SaveWF --David Caratelli