Fixed integrate()