Repair handling json exception
add checking if initial data exist