fix calling done() after clearing marks
Merge pull request #7 from jakemac53/robust

fix calling done() after clearing marks