Bug in reading json