fix strict mode errors