Fixed application entering background issue.