fix peekBack bug