bug with synchronizing