Fixed bug in EffectTarget.
Merge branch 'feature/lua-tests'