bug fix for strict mode