Fixed bug in syncqueue.