fixed nesting of done operators