fix type in UMD