Found where context switching error is in uthread_yield().