Fixed a bug when parsing objects as string