Fix minor naming errors.
Fix misnamed element.
Fix if statement.

Soo-Hyun doesn't know how to program in C.