Fix tree issue on Firefox.