fix a couple of string length issues