Fix crash on trying to index buggy map