Re-render of template caused category to update which was wrong