Correcting bad revert. Sometimes it was returing 0 instead of -1.

I'm feeling really dumb now for not using Git revert or CopyPasting full text instead done by hand and resulted in placing wrong if position resulting in small regression...