correct the background task's attributes
remove gcc warning
compiling error free