fixed some bugs in newest sad for win32 and reregenerateded