fixing error that breaks in strict mode