Fix 100% bug on firefox