Correcting ugly errors

Corrected two pretty obvious mistakes.