Fixed bug in app