Set as done before event emitted