fix another timing bug