index zero error fixed
index zero error fixed