Fix bug on Mac Firefox