fixed problem when save is NULL