fixed executing do/while loops.