Fixed extendProof bug that derek found earlier.

Cause was multiple versions of code flying around, we need the code to be merged often or we'll keep getting stupid bugs like this.