Catch invalid path