bugfix POSIX thread