fixed damagecode parsing