Fixing some potential synchronization issues in the list adapter.