Fixed bug that caused deserialization always to fail.