fixed categoryIndex on mainjs
mainjs fix