catch proper exception, fix the segmentation fault of no_such_element