Fix data overwrite when last request is invalid

Instead of using a generic data object, we save it in dataSaved
whenever a valid request is made.