Fixed Firefox compatibility issue