fix an cover race condition