Fixed the background process bug