Small bug fix to examples