typo
bugfix: don't return empty id attribute if unable to save