fix bug waiting the DNA generator