Fixed Firefox compatibility