fixed a index out of range error, which occured when loading a cinematic map