no bug switch to using indexOf