Firefox bug fixing