fixing bug in app