handle invalid path (gh-32)