fixed average lifespan bug