Fix plane position for different dimensions