Fix delete block problem.