fix bug introduced to while fixing bug grr