added Riemann hotfix bug from psystem in static.py