fixed null reference segfault on cloning of button