fixed bug where nFactor could have been deleted before Factor reached which would have meant not treated as a factor