Fixed getEffect recursion