fix double init