bugfix: always rewrite all category records when updating card