may fix menu toggle behaviour