fix variable naming bug that was breaking queue removal