Fixed a bug about the end of queue