fix for old browsers and IE