Fix IE indexOf() issue.