fix Firefox bug