corrected bug with nonclosed operations