fix unshift bug