Fixed bug in app.