Fixed a blank indexOf