Had the same issue, though I fixed it by assuming the first mapstate file just needed the hasKey thing set to True.