Fix flash effect