Fixed bug when path not exists