Fix classloader while restoring instance in fragment