Fix a bug when queue full