fix 2D compile time error