Fix index out of range error