Bugfix ifdef Dim2