Fixed bug in callbacks demo.