Fixed issue with real path of data
Added check for incorrect path identification