Tweaks to get port mod errors working properly