fix firefox scale crash