fixed auto-detect in Firefox