Fix warning due to accessing application directly