Fixed a bug when saving the last response