strict mode code bug fix