fix a few bugs in severity border stuff