second bugfix to guess_t0_and_amplitude()