Fixed a bug in que