Ugly but function wrong pwd page