fix double reference