insertEffects: minor fixes to allow compilation