Fixes language menu bug on firefox