Fix typo
Fix memory leak