Fix a bug where buttons would disappear during creation.