Weird pwd bug