fix bug in app