Fix heisenbug due to addition of max_iter param in LSVC
Merge pull request #3528 from MechCoder/fix_heisen

FIX heisenbug due to addition of max_iter param in LSVC