Small logical change for TPAShrink and TPAErode