Memory leak fixed.
Sync fix.