repair demogame and samplecollision closecallback func