bug fixes on salt module (first replication succeed)