fix(bug): fix the error asignment -1 should be true, else false