Browser compatibility bugfixes