Fix typo in console-error fix