fix calling done() after clearing marks