fix backend destroying