fix for old browsers