possibly fixed bugs in background tasks