Fixed a broadcasting bug in to_haz_curves