cross-browser bug fixing