Fixed resource unserialization.