Fix strict mode errors