fixed pwd bug