Fixed bug on Firefox