Fixed js error when importing metadata.