bug fix - thanks neil