fix firefox compatbility