fix crash on startup due to type mis match