fixed bugs in wsync