Bug fixed: now the circular fifo queue is synchronized.