fix success handling in decrypt