then one night , after working so hard on a particular set of alterations for several tendays and thinking she had succeeded in correcting the design until the test simulation failed , inspiration struck her in a dream , as it had only twice before in her life when it really mattered .