Every piece of software has its own bugs.
A 100% bug free software is impossible.
We just need to get alerted as soon as shit happens and make the appropriate measures.
In your case, it's probably better to have an imperfect automated algo, prone to bug from time to time, than to not trade at...