fixed json object null exception