fixed this on firefox #371