fix valid() in fde format
fix valid() in blackberry-es10 format