Fixed bug in Dcrypt