Fix addButtonsToFrame-Error