fix reverseList bug