Let the code exit when out_of_bound issue happens.