Fix calculate impulse vector