Fixed used method getApplication