fix double toolbar bug