josh's fixes for NaNs in law bar graph