fixed some json issues