fix bug: only one queue was shown. Use a tmp variable for  values