Fixed synchronization issue in log