Fix bad elif statement