fix error of ajax loading of category