bug fix in second example