slope.py: bugfix