fixed some firefox bugs