Fixed Index out of Range Exception.