bug fixes on md fetcher