Fixed Firefox compatibility bug
added firefox compatibility bugfix