fixed buggy example