addCategory working as intended