bug fixing, support old browsers.