fix problem of cannot finding decrypt function