fixed bug in browser backwards compatibility code