Solved by AladdinPerzon in post #2 
              
              
                Couldn’t you have targets [0,1,2] if the -1 is causing the issue? Could you share some code snippet to how it looks like now