fixed menu close problem from windows/firefox