fix crash on delay set refresh