pwd bug fixed