Fixed maplayer saving in models