fix parsing issues with negative step ranges