Fix: TypeError in Firefox