Fix bug with FireFox 5