fixing problem with firefox #69 thanks to @ymschaap