fixed bug with getting showed menu in firefox