fix a bug in timing