refactor(queue): set the last element with negative offset