Fix the bug in Firefox