Fix pwd on exists method