fixed pwin.cpp?