BUGFIX: Removed NaN values for 2d curves.