fixed issue with parsing URL instead of path