Fixed zero sized dimension checks.