fixed minor regex-replace bug, this should not be required.