fix issue with disposing in Application.cs