Attempted to fix errors in strict mode