Fixed bugs for variable overflow in health