Fix some really stupid Firefox bugs