Fixing damages taken bug