fix bug with a repeat following a repeat while.