fixing a mistake preventing saving