cross-browser consistency fixes