fix possible crash while update display