Fix getting view path name.