fixed bug in new gwpsd