Some function name typo fixed.
Safari bug fixed.