bug fix - should have tested :-(