Update Application.java

some fix