I'm pretty sure you didn't do anything wrong, it's surely a bug in my code that I didn't catch.Feel free to send me the curves you were using and I'll see if I can figure it out!!