Fix effect invocation not working properly