Fixed json bug in update.