fix potential crash with dialog alert at start