Fixed thread waiting