App finally works fine