However, your code is just the same with some changed names. So it should work. I am pretty sure your error is coming from another part (can you show your whole script? or at least the part with your modifications?)