Fix delete without refresh error.