correct bug when opening menu