fix bar states save