minor bug fix - typo in code