fixed addBox bug