Nesting bug in GuignaMR apply