fixed bug on else if.

Signed-off-by: lepton.phlb <lepton.phlb@gmail.com>