Fixing Firefox errors and transitions