ensure that there is no possibility of done firing twice