Reinstate auto-height code from the reflog