Fixed fetching function exceptions