fix else if structure