fixed firefox bugs