Fixed trying to open invalid path.