Fixed bug with incomplete_hours option producing nans