fix list calculations html