fix bug introduced when trying to get tricky and not quite reverting all the way