Fix pivot character

The current implementation sets the max pivot to the 5th character not the 4th. This should fix that issue.