Fixed get file URL code