fix firefox functionality