Fixed wrong time of flight bug.