fixed bug in queue (shifting queue to left