fixed menu resizing bug