Fixed issue #2808 - Does not produce warning anymore, and creates 3d plot correctly.