fixes return of queue