fix double boxes