Fix a bug generating static files.