maybe fixed the crash on decrypt