Fix bug close application