Fix example app + error handling