Fix one end

I fix the first IF of script because not have one END.