Fixed an error in the readme demo code