fix for checkIfSaved method