fix valid() in blackberry-es10 format