corrects bug which removed last toolbar items when a basic format button was deleted