Fixed empty stack exception when peeking into an empty peg.