fix nested func does not work in strict mode.