Fix #39 in Firefox