Fixed settlement bug
Fixed a bug in settlements