Fix the error on chrome and Firefox