fixed menu bar bug