fix modify_effect() failure