categorise_it_all: minor cleanup, bugfix