Fix reference.ts