fix categories perm