Fix health calculation