fixed button bar bug