fix widget flip issue