Solved bugs in shift and unshift