fix out of range bug