Fix Issue 884

Fix crash when morphing from 2D to 3D. #884.