Fix background task permissions