Fixing queue ordering.