fixing some flashes