fix doubles