fixed generate salt bug