Fixed issue with $path