fixed memory leak in stack