fix static loading