[ERROR FIXED]: 'dict' object cannto be represented as index