Fixed a bug where skips flag was not restored.