bug fixes for custom bar manager