Dealing with invalid blocks