Correct typo in error overlay guard code