fixed crash bug in armour calculations