Fix integral crash #375