Fixed a bug with delayed save.