Fix example code

I'd accidentally copied the wrong thing from my example app. Oops.