fixed #45 set header bar if type changed