fixed error which was preventing save