Fix bug in Firefox