fixed cleanup function call reference