Corrected bug on chart removeCategory function