Fixed an issue with larva and time length