ridder now works

The wrong test for what bracket to use in the next iteration had
previously been used