Fix typo leading to wrong behavior when using the errors.container option