fix overflow of durability value.