another typo fix to the errorbox logic