removed duplicate queue flush