Fix bug in pivot class.