Fixed thread problem
fixed threading
fixed threading