fix mismatch between saving/loading code. fixes #3159
Merge pull request #3172 from johnbartholomew/issue-3159

Fix mismatch between saving/loading code