Fix effect loop