fixed decrypt bug