fix code for update flavor
fix code for update flavor