fixed if statements that should have been elif statements.

I wasn't careful copying and pasting my if/elif statements.  This commit corrects my error.