bug fixes

fix crash when display dialog times out