Fixed infinite thread bug