fix crash due to static