added _fixMappings() to deal with doc errors. Should probably generalized out of the script.