fix elseif block