Fix errors with settlement gen