fixed manualintegrate bug