Fixed crashes on 10.6 on encryption error