fix mcrypt regression