Fixed saving in wrong directory