fixed settlement bug right after expiration