- fix crash due to out of bound by adding to NSNotFound