reset head before deploy