fix #3376: Crash on start