viewmodel - fixed addCategory bug