Random fixes

Just small fixes I found while looking at the source code.

No change should alter behavior here.
was the 50 to 60 deliberate? seems like a typo