This version fixes a bug with editing categories.