Fix syntax error (if -> elif) at 367