Fix critical encryption error
Fix some doc