fix mistyped 'else if' instead of 'elif'