fixed a small bug in low.dim().