Ups. Fix generation of _references file