fix bug.  when calling a set method then the corresponding index becomes duplicated because findIndexValue returns 0 no matter if the index was found or not.
FIX ISSUE #3 (under revision)