fixed model saving in save()