Fixed a bug with actionbar menus