This might have been because there was another dice that was barely on the hitbox of the equation squares. You can try clearing out the area around the squares so its the only dice touching it.