Fix error in Firefox < 4.