fixing constant override on destroy