fixed a bug that intent become null when the MainService is force-quited.