Removed unidentified index error