API parsing json bug fixed