bugfix in save.php