fix a bug for <elseif>