fixed bug when slot 2 and 3 both same factor and slot 1 is a factor