Fix typo in demos error handler