crypted attachment bug fixes