(*) Fix possible out of bounds exception.