fix issue 203 and bugs in skip_to()