Fixed a bug in the button layout creating multiple copies of the same
button.