Fixed typo in save() function