A bux in simplify fixed
Merge pull request #2231 from thilinarmtb/3128_bug_fix

A bug in simplify fixed