Fix error in app with stupid loop increment