Removed runtime error raised in Problem for 3D cases and added condition to handle naming in core api