When a sales plan was all wrong, the company had to pivot.