Fix term category edit