fixed strict mode problems