Fixed a bug with save button enabling