Fixed json bug (this time for real)