small bug about index out of range