bug fix - undefined variable