fix else if clause