fixed a small issue where the skip previous logic was buggy