fix case for WeakMap build, error on missing file