Fixed the hint destroy function