fix supervisor bug