repared bug on loadCategories.js