Fix error in handling settings argument