removed bug caused by 2 done() calls