Auto-reload and error with deserialization

The rest of the error will say what file and line of your code is causing the error. If you post that part we may be able to help you.