fix bugs on normalizer and metadata.