Avoid negative skip value