fix code glitches

Just a pair of code glitches, no bug fixes.
Cheers