Fix spend height sometimes not getting properly set.