A mistake that almost ended in disaster