Fixed error triggered on token failure.