fixed bug with file extensions in uri