fixed application not quitting