I just copied the logic... you mean you think this was a bug from your code?