fix for ancient browsers