fixed encrypt handle