Fix bug with continue in do while loops