fixed the issue in which the restaurant categories could not be retrieved