Fixed condition_variable error.