fixed crash caused by startup reload event