fix dim parsing