solved boot problem in thread.c