fixed bug in app