fix static call when starting class