Fix bug for modal validation in sensor metadata.