Another fix for id=chr not found browser error