Corrected critical bugs indimension formula implementation