Update App.java

Fix recursion