Apply @jakobdamjensen 's fix for save- and loadObject methods.