If the batteries are of the same amp and fully charged, but your tool runs intermittently, then your batteries may not be fully seated in the machine.
If the light is flashing, pull both batteries out and reconnect them to the tool. You should hear a click when they are fully seated.