minor timing bug