Update doWP.cc

re-saving WS before to save in a file