Fix menu bug on firefox