Fix authorization problem with tasks