fix permissions for tasks