fix double solve