AWS: Fix bug when setting public flag in task interface.