Categorycleaning

Jay! One ticket solved, one bug found... (actually nobody used that function as it seems!)