fix: Fixed memory leak