Fixed bug: NSException because of multi thread