Fixing task mutex.