fixed errors in Pivot class