fix bugs with win cell