Remove incorrect begin blocks