Set collision handler from destructor to fix crash