Fix for category chooser (js)