fixing localhost error
fixed index error