fix up elapsed bug