change undefined in categories