Prevent memory leak