fixed QWaitCondition errors