fixed lifespan bug