fixed bug with hide not checking path validity