Fixed some logic in saving executable file in loading