fixes signature race condition