Make sure category code can't be changed after creation