Fixed synchronization issues.