category switch not working