some errors in decrypt