Fix to support UMD properly.