Fixed delegate method sample of demo.