 			let archveMessageIds = archivedMessages?.map{ $0.messageId }
 			
 			let request = MMPostSyncRequest(internalId: internalId, archiveMsgIds: archveMessageIds, dlrMsgIds: nonReportedMessageIds)
-			MMLogDebug("Found \(nonReportedMessageIds?.count) not reported messages. \(archivedMessages) archive messages.")
+			MMLogDebug("Found \(nonReportedMessageIds?.count) not reported messages. \(archivedMessages?.count) archive messages.")
 			self.remoteAPIQueue.performRequest(request) { result in
 				self.handleRequestResponse(result, nonReportedMessageIds: nonReportedMessageIds)
 			}

			case .Failure(_):
				MMLogError("Sync request failed")
			case .Cancel:
				MMLogInfo("Sync cancelled")
				break
			}
			self.finishWithError(result.error)

			switch result {
			case .Success(let fetchResponse):
				let fetchedMessages = fetchResponse.messages
				MMLogDebug("Messages fetching succeded: received \(fetchedMessages?.count) new messages: \(fetchedMessages)")
				
				if let nonReportedMessageIds = nonReportedMessageIds {
					self.dequeueDeliveryReports(nonReportedMessageIds)
					MMLogDebug("Delivery report sent for messages: \(nonReportedMessageIds)")
					if nonReportedMessageIds.count > 0 {
						NSNotificationCenter.mm_postNotificationFromMainThread(MMNotificationDeliveryReportSent, userInfo: [MMNotificationKeyDLRMessageIDs: nonReportedMessageIds])
					}
