fix multi-threaded WPP