Fixed calculate dot and reordered add box points