fixed bugs in wc