Fixes an error in save.php. Closes #52.