fixed a bug computing unit edge step length for materials with close by edges