Correction for response object from rest api