fix fetching nil