bug fix - clearly not a good day!