fixed Object.freeze not supported in some older browser