fix apply_effect_chain doesn't handle already-allocated effect ID