Fix bug in simplifyRecursive.