Fixed bug in sample app.