Cleanup of head