Fixed quit issue.