Head error cleaning