clear() didn't check if blocks was empty