Fix sizes for different dimensions