Fix safeAttributes bug in save()