mode cleanup after head operation