fix bug with timing