Fixed a bug when changing categories in time limits