Correctly cleanup path for category setter