Corrected the length. Index still wrong