fix for destroy