fixed breakage of destroy button