fixed bug in elseif tag