Fixed thread call bug