fix index out of range error