fix wrong delete_flavor method