fixed null support for USHORTLEN_TYPE