fixed #toJSON