fix bug in static.py