Unable to load file: String index out of range: -1