Fixed non updating categories. Closes #47.