Fixed queue handling mistake