Fixed uncaught JSON parsing exception