fix not deleting buttons bug