[E] Index Calculation Error Fixation

There was an index calulation error while shifting the circular queue,
and I fixed it.