2d fix for different sized dimensions