fix toast swiping bug